package com.zihao.blog.validator.constraint;

import com.zihao.blog.validator.annotation.LongNotNull;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class LongValidator implements ConstraintValidator<LongNotNull, Long> {

    @Override
    public boolean isValid(Long value, ConstraintValidatorContext constraintValidatorContext) {
        if (value == null) {
            return false;
        }
        return true;
    }
}
